export const AddToCart=(data)=>{
    return {
        type: 'ADD_TO_CART',
        payload:data
    }
}

export const deletePro=(data)=>{
    return {
        type: 'DELETEPRO',
        payload:data
    }
}
export const changeQ=(data1,data2)=>{//data1:idnex,data2:quatity
    return {
        type: 'CHANGEQ',
        payload:[data1,data2]
    }
}
